import { createRouter, createWebHistory } from 'vue-router';
import Login from '../components/Auth/Login.vue';
import HomePage from '../components/Home/HomePage.vue';
import Container from '../components/Container.vue'
const routes = [
    { path: '/', component: Container },
    { path: '/Login', component: Login },
    {
        path: '/Container', component: Container, children: [
            {
                path: 'Home/HomePage', component: HomePage
            }
        ]
    },
]
const router = createRouter({
    // 指定路由模式
    history: createWebHistory(),
    // 路由地址
    routes: routes
})

export { router }